package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Address;
import com.itheima.pojo.InterventionSetmeal;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealService {
    /*分页查询*/
    PageResult findPage(QueryPageBean queryPageBean);
    /*新增套餐*/
    void add(Setmeal setmeal, Integer[] checkgroupIds);
    /*查询所有套餐*/
    List<Setmeal> getSetmeal();
    /*查询套餐详情*/
    Setmeal findAllById(Integer id);
    /*通过套餐ID查询检查组ID*/
    List<Integer> findCheckGroupIdsBySeatMealId(Integer id);

    List<Map<String, Object>> findSetmealCount();

    List<Setmeal> findAllSetmeal();

    List<Map<String, Object>> findSetmealPrice(String startDate, String endDate);

    List<InterventionSetmeal> getSetmealByPhone(String telephone) throws Exception;

    List<InterventionSetmeal> findByDate(Map map, String telephone);

    Map<String, Object> findBySetmealId(Integer oid, String telephone);

    Map<String, Object> findByOId(Integer oid);
}
